export type RegisterForm = {
  account?: number | string
  phone?: string
  code: string
  password: string
  // nickname: string
}

export type LoginForm = {
  account?: number | string
  phone?: string
  code?: string
  password: string
  captchaParam?: string
}

export type forgotPassType = {
  account: string
  type: number
  newPass: string
  code: string
}

export type UserInfo = {
  id: number
  account: string
  nickname: string
  avatar?: string
  email?: string
  role: number
}

export type CommonPage = {
  page?: number
  pageSize?: number
}

export type UserStat = {
  collect: number
  balance: number
  comment: number
}

// 签到统计
export type CheckinStat = {
  checkinDays: string
  hasCheckedInToday: number
  totalCheckinReward: number
}

// 钱包明细日志列表
export type WalletLogListType = {
  id: number;
  type: number;
  fee: string;
  create_time: number;
}

// 留言板列表
export type CommentUserType = {
  nickname: string;
  avatar: string;
}
export type CommentListType = {
  id: number;
  name: string;
  user_id: number;
  create_time: number;
  user: CommentUserType;
}

// 收藏列表
export type Menu_info = {
  name: string;
  fee: number;
  photo_url: string;
}

export type FavoriteListType = {
  id: number;
  menu_id: number;
  menu_info: Menu_info;
}

// 修改密码
export type updatePassType = {
  oldPass: string;
  newPass: string;
  confirmPass: string;
}

// 修改邮箱
export type updateEmailType = {
  email: string;
  code: string;
}
